import request from '@/utils/request'

// 查询紧急通知列表
export function listJinjitongzhi(query) {
  return request({
    url: '/system/jinjitongzhi/list',
    method: 'get',
    params: query
  })
}

// 查询紧急通知详细
export function getJinjitongzhi(id) {
  return request({
    url: '/system/jinjitongzhi/' + id,
    method: 'get'
  })
}

// 新增紧急通知
export function addJinjitongzhi(data) {
  return request({
    url: '/system/jinjitongzhi',
    method: 'post',
    data: data
  })
}

// 修改紧急通知
export function updateJinjitongzhi(data) {
  return request({
    url: '/system/jinjitongzhi',
    method: 'put',
    data: data
  })
}

// 删除紧急通知
export function delJinjitongzhi(id) {
  return request({
    url: '/system/jinjitongzhi/' + id,
    method: 'delete'
  })
}
